<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="sb" uri="/struts-bootstrap-tags"%>
<%@ taglib uri="http://tiles.apache.org/tags-tiles" prefix="tiles"%>
<%@taglib prefix="display" uri="http://displaytag.sf.net"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ page import="java.util.Calendar"%>
<%@ page import="java.util.*,java.text.*;"%>
<jsp:include page="/loginCheck.jsp" />
<!-- 
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
 -->
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE9">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="StyleSheet" href="css/jquery.qtip.min.css" type="text/css">
<link rel="StyleSheet" href="css/bootstrap.min.css" type="text/css">
<link rel="StyleSheet" href="css/style.css" type="text/css">
<script type="text/javascript" src="js/jquery-2.1.0.min.js"></script>
<script type="text/javascript" src="js/jquery.qtip.min.js"></script>
<script type="text/javascript" src="js/bootstrap.min.js"></script>
<script type="text/javascript" src="js/util.js"></script>
<script type="text/javascript" src="js/checkform.js"></script>
<script type="text/javascript" src="js/script.js"></script>
<title>履歴一覧</title>
<!-- Le HTML5 shim, for IE6-8 support of HTML elements -->
<!--[if lt IE 9]>
    <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
    <![endif]-->
<sb:head />
</head>
<body>
	<div class="wrapper">
		<tiles:insertTemplate template="/template/header.jsp"></tiles:insertTemplate>
		<div class="panel panel-success">
			<div class="panel-heading">
				<img src="img/order.png"><strong>予約一覧検索</strong><img alt=""
					src="img/help.png" class="help-icon">
			</div>
			<div class="panel-body">
				<s:actionerror theme="bootstrap" />
				<s:actionmessage theme="bootstrap" />
				<s:fielderror theme="bootstrap" />
				<div class="container box-search">
					<div class="row">
						<div class="col-xs-12 col-md-8">
							<label for="exampleInputEmail2"><strong>品名コードの一部を入力してください</strong></label>
						</div>
					</div>
					<div class="row">
						<form action="searchYoyakuList.action" method="post" role="form"
							enctype="multipart/form-data">
							<div class="col-xs-12 col-md-8">
								<input type="text" class="form-control" name="feedCD"
									placeholder="品名コードの一部を入力してください" style="height: 30px;">
							</div>
							<div class="col-xs-6 col-md-4">
								<button type="submit" class="btn btn-warning">検索</button>
							</div>
						</form>
					</div>
				</div>
			</div>
		</div>
	</div>
	<div class="table-responsive">
		<display:table id="txt" name="rtListYoyaku" pagesize="15"
			requestURI="" class="table table-bordered">
			<display:column title="No.">${txt_rowNum}
				</display:column>
			<display:column property="feedCD" title="品名コード">
			</display:column>
			<display:column property="feedName" title="品名"></display:column>
			<display:column property="kibouYMD" title="出荷日"></display:column>
			<display:column property="formCD" title="容量"></display:column>
			<display:column property="qty" title="数量"></display:column>
			<display:column property="weight" title="重量"></display:column>
			<display:column title="操作">
				<form action="edit.action" method="post" role="form" name="editform"
					enctype="multipart/form-data">
					<input type="hidden" name="seqNo" value="${txt.seqNo}"> <input
						id="code_${txt.feedCD}" type="hidden" name="feedCD"
						value="${txt.feedCD}"> <input type="hidden"
						name="feedName" value="${txt.feedName}"> <input
						type="hidden" name="kibouYMD" value="${txt.kibouYMD}"> <input
						type="hidden" name="formCD" value="${txt.formCD}"> <input
						type="hidden" name="formName" value="${txt.formName}"> <input
						type="hidden" name="qty" value="${txt.qty}"> <input
						type="hidden" name="weight" value="${txt.weight}"> <input
						type="hidden" name="getCD" value="${txt.getCD}"> <input
						type="hidden" name="jichikuCD" value="${txt.jichikuCD}"> <input
						type="hidden" name="freeComment" value="${txt.freeComment}">
					<input type="hidden" name="overtime" value="${txt.overtime}">
					<c:choose>
						<c:when test="${!txt.overtime}">
							<input type="submit" name="submit" value="編集"
								class="btn btn-default btn-general">
						</c:when>
						<c:otherwise>
							<input type="submit" name="submit" value="レビュー"
								class="btn btn-success btn-review btn-general">
						</c:otherwise>
					</c:choose>
				</form>
			</display:column>
		</display:table>
	</div>
	<tiles:insertTemplate template="/template/footer.jsp"></tiles:insertTemplate>
	</div>
</body>
</html>